package com.springboot.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.domain.Role;
import com.springboot.mapper.RoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceI extends ServiceImpl<RoleDao, Role> {

    @Autowired
    private RoleDao rd;

    public List<Role> findRole2(){
        List<Role> list = rd.findRole2();
        return list;
    }


    public List<Role> getMenuByRole2(){
        List<Role> list = rd.getMenuByRole2();
        return list;
    }


}
